package com.example.pkmedical.Fragments;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.example.pkmedical.APP.MyApp;
import com.example.pkmedical.Activity.weight.tozero.ToZeroHomeActivity;
import com.example.pkmedical.Activity.weight.options.OptionsHomeActivity;
import com.example.pkmedical.Activity.weight.weightdevice.WeightDeviceActivity;
import com.example.pkmedical.Base.BaseFragment;
import com.example.pkmedical.R;

import butterknife.BindView;
import butterknife.OnClick;

public class WeighFragment extends BaseFragment {
    @BindView(R.id.weight_tozero_bt)
    Button weightTozeroBt;
    @BindView(R.id.weight_weight_czq_bt)
    Button weightWeightCzqBt;
    @BindView(R.id.weight_select_bt)
    Button weightSelectBt;

    @Override
    public int setLayoutId() {
        return R.layout.fragment_weight;
    }

    @Override
    public void findViewById(View view) {

    }

    @Override
    public void setViewData(View view) {

    }

    @Override
    public void setClickEvent(View view) {

    }

    @OnClick({R.id.weight_tozero_bt, R.id.weight_weight_czq_bt, R.id.weight_select_bt})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.weight_tozero_bt:
                startActivity(new Intent(MyApp.getAppContext(), ToZeroHomeActivity.class));

                break;
            case R.id.weight_weight_czq_bt:
                startActivity(new Intent(MyApp.getAppContext(), WeightDeviceActivity.class));

                break;
            case R.id.weight_select_bt:
                startActivity(new Intent(MyApp.getAppContext(), OptionsHomeActivity.class));

                break;
        }
    }
}
